<?php
/**************************************************************************
 * Naanal PHP Framework, Simple, Efficient and Developer Friendly
 * Ver 3.0, Copyright (C) <2010>  <Tamil Amuthan. R>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ************************************************************************/
if($record_index["value"]<1)
{
    echo "<tr><th>Name</th><th>EMail</th><th>Is Admin</th><th>Active</th><th>Edit</th><th>Active</th><th>Delete</th></tr>";
}
?>
<tr class="trcolor">
<td><?php echo "{$firstname["value"]} {$middlename["value"]} {$lastname["value"]}"; ?></td>
<td><?php echo $email["value"]; ?></td>
<td><?php echo $isadmin["value"]>0?"Admin":"Regular User"; ?></td>
<td><?php echo $active["value"]>0?"Active":"InActive"; ?></td>
<td align="center"><a href="index.php?page=user&id=<?php echo $id["value"]; ?>">Edit</a></td>
<td align="center"><a href="index.php?page=user&action=<?php echo $active["value"]>0?"deactivate":"activate"; ?>&id=<?php echo $id["value"]; ?>"><?php echo $active["value"]>0?"Deactivate":"Activate"; ?></a></td>
<td><a href="index.php?page=user&action=delete&id=<?php echo $id["value"]; ?>">Delete</a></td>
</tr>